package com.mingqijia.gassafety.db.entity;

import com.alibaba.fastjson.annotation.JSONField;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.IdType;
import java.util.Date;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableField;
import java.io.Serializable;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;

import javax.validation.constraints.NotBlank;

/**
 * <p>
 * 开通企业列表
 * </p>
 *
 * @author wanghai
 * @since 2023-02-10
 */
@Data
@EqualsAndHashCode(callSuper = false)
@TableName("t_gss_jv_info")
@ApiModel(value="JvInfo对象", description="开通企业列表")
public class JvInfo implements Serializable {

    private static final long serialVersionUID=1L;

    @ApiModelProperty("id")
    @NotBlank(message = "主键")
    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    @ApiModelProperty(value = "SPID")
    @TableField("sp_id")
    private String spId;

    @ApiModelProperty(value = "企业名称")
    @TableField("name")
    private String name;

    @ApiModelProperty(value = "企业简称")
    @TableField("alias")
    private String alias;

    @ApiModelProperty(value = "企业类型")
    @TableField("type")
    private String type;

    @ApiModelProperty(value = "企业所属区域")
    @TableField("area")
    private String area;

    @ApiModelProperty(value = "说明")
    @TableField("introduction")
    private String introduction;

    @ApiModelProperty(value = "是否删除")
    @TableField("is_deleted")
    private Integer isDeleted;

    @ApiModelProperty(value = "开通时间")
    @TableField("join_time")
    private Date joinTime;

    @ApiModelProperty(value = "创建时间")
    @JSONField(format = "yyyy-MM-dd HH:mm:ss")
    @TableField("created_at")
    private Date createdAt;

    @ApiModelProperty(value = "开通时间")
    @TableField("updated_at")
    private Date updatedAt;

    @ApiModelProperty(value = "工商业燃气用户数")
    @TableField("user_nums")
    private Integer userNums;

    @ApiModelProperty(value = "民用燃气用户数")
    @TableField("civil_user_nums")
    private Integer civilUserNums;
}
